/**
  ******************************************************************************
  * @file    pid_timing.c
  * @author  Sherlock
  * @version V0.1
  * @date    08/12/2024
  * @brief   PID compute and output.
  ******************************************************************************
  * @copy
  *
  * <h2><center>&copy; COPYRIGHT 2010 Feirui</center></h2>
  */ 



/**
  * @brief  INCLUDE FILES.
  */
#ifndef	PID_TIMING_GLOBAL
#define	PID_TIMING_GLOBAL
#include <includes.h>
#include "pid_timing.h"
#include "pid_output.h"


uint8_t PID_TimingHandle(void)
{
  if(AVRHWOffDelayTiCnt>0 && AVRHWOffDelayTiCnt<65535) AVRHWOffDelayTiCnt++;
  if(AVRVoltCrankTiCnt>0) AVRVoltCrankTiCnt--;

  return DEF_TRUE;
}


#endif	/*	PID_TIMING_GLOBAL	*/

/******************* (C) COPYRIGHT 2010 Feirui *****END OF FILE****/